import Vue from "vue";
import VueRouter from "vue-router";
import HomeView from "../views/HomeView.vue";

Vue.use(VueRouter);

const routes = [
    {
        //王帅的测试路由
        path: "/shuai",
        name: "ww",
        component: () => import("../views/MyHeader.vue"),
    },
    {
        //光平的测试路由
        path: "/chen",
        name: "guangping",
        component: () => import("../views/GuangPing.vue"),
    },
    {
        path: "/",
        name: "home",
        component: HomeView,
    },
    {
        //春旭的测试路由
        path: "/xu",
        name: "xu",
        component: () => import("@/views/ChunXu.vue"),
    },
    {
        //德军的测试路由
        path: "/dejun",
        name: "dejun",
        component: () => import("../views/DeJun.vue"),
    },
    {
        //少博的测试路由
        path: "/shaobo",
        name: "shaobo",
        component: () => import("../views/ShaoBo.vue"),
    },
    {
        //王浩的测试路由
        path: "/wanghao",
        name: "wanghao",
        component: () => import("../views/WangHao.vue"),
    },
    {
        path: "/about",
        name: "about",
        component: () => import("../views/AboutView.vue"),
    },
    {
        //孟辉的测试路由
        path: "/menghui",
        name: "menghui",
        component: () => import("../views/Menghui.vue"),
    },
    {
        //素芳的测试路由
        path: "/susu",
        name: "Susu",
        component: () => import("../views/Susu.vue"),
    },
    {
        path: "/media",
        name: "meddia",
        component: () => import("../views/Media.vue"),
    },
];

const router = new VueRouter({
    mode: "history",
    base: process.env.BASE_URL,
    routes,
});

export default router;
